<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>工业屏交易平台 - 求购一览</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        :root {
            --primary-color: #2b6de5;
            --secondary-color: #3c8cff;
            --accent-color: #ff7d00;
            --success-color: #34c759;
            --light-bg: #f8f9fa;
            --border-color: #eaeaea;
            --text-primary: #333;
            --text-secondary: #666;
            --text-light: #999;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: "PingFang SC", "Helvetica Neue", Arial, sans-serif;
        }
        
        body {
            background-color: #f5f7fa;
            color: var(--text-primary);
            font-size: 14px;
            line-height: 1.5;
            padding-bottom: 60px;
        }
        
        .container {
            max-width: 480px;
            margin: 0 auto;
            background: white;
            min-height: 100vh;
            box-shadow: 0 0 15px rgba(0,0,0,0.05);
            position: relative;
            overflow-x: hidden;
        }
        
        /* 头部样式 */
        .header {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
            padding: 15px;
            position: relative;
            z-index: 10;
        }
        
        .top-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .logo {
            font-weight: bold;
            font-size: 18px;
            display: flex;
            align-items: center;
        }
        
        .logo i {
            margin-right: 8px;
            font-size: 20px;
        }
        
        .actions {
            display: flex;
            gap: 15px;
        }
        
        .actions i {
            font-size: 18px;
        }
        
        .search-box {
            background: rgba(255,255,255,0.2);
            border-radius: 20px;
            padding: 8px 15px;
            display: flex;
            align-items: center;
            margin-top: 15px;
        }
        
        .search-box i {
            margin-right: 8px;
            color: rgba(255,255,255,0.8);
        }
        
        .search-box input {
            background: transparent;
            border: none;
            color: white;
            width: 100%;
            font-size: 14px;
        }
        
        .search-box input::placeholder {
            color: rgba(255,255,255,0.7);
        }
        
        /* 筛选区域 */
        .filter-section {
            padding: 15px;
            background: white;
            border-bottom: 1px solid var(--border-color);
        }
        
        .filter-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 15px;
        }
        
        .filter-tag {
            padding: 6px 12px;
            border-radius: 16px;
            background: var(--light-bg);
            color: var(--text-secondary);
            font-size: 13px;
            display: flex;
            align-items: center;
            cursor: pointer;
        }
        
        .filter-tag.active {
            background: var(--primary-color);
            color: white;
        }
        
        .filter-tag i {
            margin-right: 5px;
            font-size: 12px;
        }
        
        .filter-options {
            display: grid;
            grid-template-columns: 1fr;
            gap: 10px;
        }
        
        .location-filters {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
            margin-bottom: 10px;
        }
        
        .filter-dropdown {
            position: relative;
        }
        
        .filter-dropdown select {
            width: 100%;
            padding: 10px 15px;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            background: white;
            appearance: none;
            font-size: 13px;
        }
        
        .filter-dropdown::after {
            content: '\f078';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-light);
            pointer-events: none;
            font-size: 12px;
        }
        
        .category-filter {
            position: relative;
        }
        
        .category-filter select {
            width: 100%;
            padding: 10px 15px;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            background: white;
            appearance: none;
            font-size: 13px;
        }
        
        .category-filter::after {
            content: '\f078';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-light);
            pointer-events: none;
            font-size: 12px;
        }
        
        /* 求购列表 */
        .demand-list {
            padding: 15px;
        }
        
        .demand-item {
            background: white;
            border-radius: 12px;
            padding: 15px;
            margin-bottom: 15px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            transition: all 0.3s ease;
            border-left: 4px solid var(--primary-color);
            cursor: pointer;
        }
        
        .demand-item:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }
        
        .demand-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 10px;
        }
        
        .demand-title {
            font-weight: bold;
            font-size: 16px;
            color: var(--text-primary);
            flex: 1;
            margin-right: 10px;
        }
        
        .demand-status {
            font-size: 12px;
            padding: 4px 8px;
            border-radius: 10px;
            background: var(--success-color);
            color: white;
            white-space: nowrap;
        }
        
        .demand-status.processing {
            background: var(--accent-color);
        }
        
        .demand-status.completed {
            background: var(--text-light);
        }
        
        .demand-content {
            color: var(--text-secondary);
            margin-bottom: 12px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .demand-meta {
            display: flex;
            justify-content: space-between;
            color: var(--text-light);
            font-size: 12px;
            margin-bottom: 10px;
        }
        
        .demand-stats {
            display: flex;
            gap: 15px;
        }
        
        .demand-stat {
            display: flex;
            align-items: center;
        }
        
        .demand-stat i {
            margin-right: 5px;
            font-size: 12px;
        }
        
        .demand-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 10px;
            border-top: 1px solid var(--border-color);
        }
        
        .demand-company {
            display: flex;
            align-items: center;
            font-size: 13px;
            color: var(--text-secondary);
        }
        
        .demand-company i {
            margin-right: 5px;
            color: var(--primary-color);
        }
        
        .demand-action {
            background: var(--primary-color);
            color: white;
            padding: 6px 12px;
            border-radius: 6px;
            font-size: 12px;
            border: none;
            cursor: pointer;
        }
        
        /* 底部导航 */
        .tabbar {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: white;
            display: flex;
            border-top: 1px solid var(--border-color);
            z-index: 100;
            max-width: 480px;
            margin: 0 auto;
        }
        
        .tab-item {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 8px 0;
            color: var(--text-light);
            font-size: 11px;
        }
        
        .tab-item.active {
            color: var(--primary-color);
        }
        
        .tab-item i {
            font-size: 20px;
            margin-bottom: 3px;
        }
        
        /* 加载更多 */
        .load-more {
            text-align: center;
            padding: 15px;
            color: var(--text-light);
        }
        
        /* 空状态 */
        .empty-state {
            text-align: center;
            padding: 40px 20px;
            color: var(--text-light);
        }
        
        .empty-state i {
            font-size: 48px;
            margin-bottom: 15px;
            color: var(--border-color);
        }
        
        .empty-state p {
            margin-bottom: 20px;
        }
    </style>
</head>
<body>
    <div class="container">
        <!-- 头部区域 -->
        <div class="header">
            <div class="top-bar">
                <div class="logo">
                    <i class="fas fa-industry"></i>
                    <span>工业屏交易平台</span>
                </div>
                <div class="actions">
                    <i class="fas fa-bell"></i>
                    <i class="fas fa-user"></i>
                </div>
            </div>
            
            <div class="search-box">
                <i class="fas fa-search"></i>
                <input type="text" placeholder="搜索求购需求...">
            </div>
        </div>
        
        <!-- 筛选区域 -->
        <div class="filter-section">
            <div class="filter-tags">
                <div class="filter-tag active">
                    <i class="fas fa-list"></i> 全部
                </div>
                <div class="filter-tag">
                    <i class="fas fa-clock"></i> 进行中
                </div>
                <div class="filter-tag">
                    <i class="fas fa-check-circle"></i> 已完成
                </div>
            </div>
            
            <div class="filter-options">
                <!-- 省市区三级联动 -->
                <div class="location-filters">
                    <div class="filter-dropdown">
                        <select id="province">
                            <option value="">选择省份</option>
                            <option value="zhejiang">浙江省</option>
                            <option value="jiangsu">江苏省</option>
                            <option value="guangdong">广东省</option>
                            <option value="shanghai">上海市</option>
                        </select>
                    </div>
                    
                    <div class="filter-dropdown">
                        <select id="city" disabled>
                            <option value="">选择城市</option>
                        </select>
                    </div>
                    
                    <div class="filter-dropdown">
                        <select id="district" disabled>
                            <option value="">选择区县</option>
                        </select>
                    </div>
                </div>
                
                <!-- 分类筛选 -->
                <div class="category-filter">
                    <select id="category">
                        <option value="">全部分类</option>
                        <option value="material">材料</option>
                        <option value="inventory">库存</option>
                    </select>
                </div>
            </div>
        </div>
        
        <!-- 求购列表 -->
        <div class="demand-list">
            <div class="demand-item" onclick="viewDemandDetail()">
                <div class="demand-header">
                    <div class="demand-title">求购单面胶带(工业级)</div>
                    <div class="demand-status processing">进行中</div>
                </div>
                <div class="demand-content">
                    需要500卷工业级单面胶带，宽度50mm，厚度0.15mm，耐高温材料，交货期15天内
                </div>
                <div class="demand-meta">
                    <div>浙江 · 杭州 · 西湖区</div>
                    <div class="demand-stats">
                        <div class="demand-stat">
                            <i class="fas fa-eye"></i> 128
                        </div>
                        <div class="demand-stat">
                            接单数: 3
                        </div>
                    </div>
                </div>
                <div class="demand-footer">
                    <div class="demand-company">
                        <i class="fas fa-building"></i>
                        鑫辉模切厂
                    </div>
                    <div>2小时前</div>
                </div>
            </div>
            
            <div class="demand-item" onclick="viewDemandDetail()">
                <div class="demand-header">
                    <div class="demand-title">长期采购OCA光学胶</div>
                    <div class="demand-status processing">进行中</div>
                </div>
                <div class="demand-content">
                    每月需求2000平方米OCA光学胶，要求透光率92%以上，无气泡，耐高温高湿环境
                </div>
                <div class="demand-meta">
                    <div>江苏 · 苏州 · 工业园区</div>
                    <div class="demand-stats">
                        <div class="demand-stat">
                            <i class="fas fa-eye"></i> 256
                        </div>
                        <div class="demand-stat">
                            接单数: 8
                        </div>
                    </div>
                </div>
                <div class="demand-footer">
                    <div class="demand-company">
                        <i class="fas fa-building"></i>
                        光科电子
                    </div>
                    <div>1天前</div>
                </div>
            </div>
            
            <div class="demand-item" onclick="viewDemandDetail()">
                <div class="demand-header">
                    <div class="demand-title">急需模切机设备</div>
                    <div class="demand-status processing">进行中</div>
                </div>
                <div class="demand-content">
                    求购二手模切机设备，要求2018年后生产，工作状态良好，有售后保障
                </div>
                <div class="demand-meta">
                    <div>广东 · 深圳 · 宝安区</div>
                    <div class="demand-stats">
                        <div class="demand-stat">
                            <i class="fas fa-eye"></i> 89
                        </div>
                        <div class="demand-stat">
                            接单数: 2
                        </div>
                    </div>
                </div>
                <div class="demand-footer">
                    <div class="demand-company">
                        <i class="fas fa-building"></i>
                        精密制造有限公司
                    </div>
                    <div>3天前</div>
                </div>
            </div>
            
            <div class="demand-item" onclick="viewDemandDetail()">
                <div class="demand-header">
                    <div class="demand-title">采购PET保护膜</div>
                    <div class="demand-status completed">已成交</div>
                </div>
                <div class="demand-content">
                    需要PET保护膜5000平方米，厚度0.05mm，要求无尘车间生产，防静电处理
                </div>
                <div class="demand-meta">
                    <div>上海 · 浦东新区</div>
                    <div class="demand-stats">
                        <div class="demand-stat">
                            <i class="fas fa-eye"></i> 342
                        </div>
                        <div class="demand-stat">
                            接单数: 12
                        </div>
                    </div>
                </div>
                <div class="demand-footer">
                    <div class="demand-company">
                        <i class="fas fa-building"></i>
                        华星光电
                    </div>
                    <div>1周前</div>
                </div>
            </div>

            <div class="demand-item" onclick="viewDemandDetail()">
                <div class="demand-header">
                    <div class="demand-title">求购光学材料库存</div>
                    <div class="demand-status completed">已成交</div>
                </div>
                <div class="demand-content">
                    收购各类光学材料库存，包括OCA胶、偏光片、保护膜等，要求全新或9成新以上
                </div>
                <div class="demand-meta">
                    <div>浙江 · 宁波 · 鄞州区</div>
                    <div class="demand-stats">
                        <div class="demand-stat">
                            <i class="fas fa-eye"></i> 156
                        </div>
                        <div class="demand-stat">
                            接单数: 5
                        </div>
                    </div>
                </div>
                <div class="demand-footer">
                    <div class="demand-company">
                        <i class="fas fa-building"></i>
                        光电科技公司
                    </div>
                    <div>5天前</div>
                </div>
            </div>
        </div>
        
        <!-- 加载更多 -->
        <div class="load-more">
            <i class="fas fa-spinner fa-spin"></i> 加载更多...
        </div>
        
        <!-- 底部导航 -->
        <div class="tabbar">
            <div class="tab-item">
                <i class="fas fa-home"></i>
                <span>首页</span>
            </div>
            <div class="tab-item active">
                <i class="fas fa-search"></i>
                <span>求购</span>
            </div>
            <div class="tab-item">
                <i class="fas fa-plus-circle"></i>
                <span>发布</span>
            </div>
            <div class="tab-item">
                <i class="fas fa-warehouse"></i>
                <span>供应</span>
            </div>
            <div class="tab-item">
                <i class="fas fa-user"></i>
                <span>我的</span>
            </div>
        </div>
    </div>
    
    <script>
        // 查看求购详情
        function viewDemandDetail() {
            // 在实际应用中这里会跳转到求购详情页面
            window.location.href = 'demand-detail.html';
        }
        
        // 筛选标签切换
        document.querySelectorAll('.filter-tag').forEach(tag => {
            tag.addEventListener('click', function() {
                document.querySelectorAll('.filter-tag').forEach(t => {
                    t.classList.remove('active');
                });
                this.classList.add('active');
            });
        });
        
        // 省市区三级联动模拟
        document.getElementById('province').addEventListener('change', function() {
            const citySelect = document.getElementById('city');
            const districtSelect = document.getElementById('district');
            
            // 清空城市和区县选项
            citySelect.innerHTML = '<option value="">选择城市</option>';
            districtSelect.innerHTML = '<option value="">选择区县</option>';
            
            // 禁用城市和区县选择
            citySelect.disabled = true;
            districtSelect.disabled = true;
            
            if (this.value) {
                // 模拟根据省份加载城市数据
                const cities = {
                    'zhejiang': ['杭州市', '宁波市', '温州市', '嘉兴市', '湖州市'],
                    'jiangsu': ['南京市', '苏州市', '无锡市', '常州市', '南通市'],
                    'guangdong': ['广州市', '深圳市', '东莞市', '佛山市', '中山市'],
                    'shanghai': ['上海市']
                };
                
                if (cities[this.value]) {
                    cities[this.value].forEach(city => {
                        const option = document.createElement('option');
                        option.value = city;
                        option.textContent = city;
                        citySelect.appendChild(option);
                    });
                    
                    citySelect.disabled = false;
                }
            }
        });
        
        document.getElementById('city').addEventListener('change', function() {
            const districtSelect = document.getElementById('district');
            
            // 清空区县选项
            districtSelect.innerHTML = '<option value="">选择区县</option>';
            
            // 禁用区县选择
            districtSelect.disabled = true;
            
            if (this.value) {
                // 模拟根据城市加载区县数据
                const districts = {
                    '杭州市': ['上城区', '下城区', '江干区', '拱墅区', '西湖区', '滨江区'],
                    '苏州市': ['姑苏区', '虎丘区', '吴中区', '相城区', '吴江区', '工业园区'],
                    '深圳市': ['福田区', '罗湖区', '南山区', '宝安区', '龙岗区', '盐田区'],
                    '上海市': ['黄浦区', '徐汇区', '长宁区', '静安区', '普陀区', '虹口区', '杨浦区', '浦东新区']
                };
                
                if (districts[this.value]) {
                    districts[this.value].forEach(district => {
                        const option = document.createElement('option');
                        option.value = district;
                        option.textContent = district;
                        districtSelect.appendChild(option);
                    });
                    
                    districtSelect.disabled = false;
                }
            }
        });
    </script>
</body>
</html>